<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="./css/loading.css">
  <link rel="stylesheet" href="./css/element-ui.css">
  <link rel="stylesheet" href="./css/mint-ui.min.css">
  <link rel="stylesheet" href="./css/articleList.css">
  <title>Document</title>
</head>
<body>
  <div id="appLoading">
   <img src="./images/loading.gif" width="50px" height="50px">
   <div class="loading-text">加载中......</div>
  </div>
  <div id="articleList" style="display: none">
    <mt-header title="趣味百科">
      <mt-button icon="back" onclick="javascript:history.go(-1);" slot="left">返回</mt-button>
    </mt-header>
    <el-row :gutter="10" class="art-artli" v-for="art in article">
      <el-col :span="6">
        <div class="art-img">
          <img :src="art.img">
        </div>
      </el-col>
      <el-col :span="18" class="art-content">
        <div class="art-title">{{art.title}}</div>
        <div class="art-summary">{{art.summary}}</div>
      </el-col>
    </el-row>
  </div>
</body>
  <script src="./js/vue.min.js"></script>
  <script src="./js/mint-ui.min.js"></script>
  <script src="./js/element-ui.js"></script>
  <script type="text/javascript">
    new Vue({
      el: "#articleList",
      data(){
        return {
          article:[
            {
              img: "./images/goods/logo.png",
              title: "标题一",
              summary: "Element 额外提供了一系列类名，用于在某些条件下隐藏元素。这些类名可以添加在任何 DOM 元素或自定义组件上。如果需要，请自行引入以下文件"
            },
            {
              img: "./images/goods/logo.png",
              title: "标题一",
              summary: "Element 额外提供了一系列类名，用于在某些条件下隐藏元素。这些类名可以添加在任何 DOM 元素或自定义组件上。如果需要，请自行引入以下文件"
            }
          ]
        }
      },
      mounted(){
       document.getElementById('articleList').style.display = 'block';
       document.getElementById('appLoading').style.display = 'none';
      }
    })
    </script>
</html>
